Note: Be aware of the security of your data when working with the form in PHP
Validating submitted data before processing an HTML form is necessary to prevent hackers from hacking and spam.
The above HTML form assumes the following rules
Next, verify the required fields via PHP
Validation rules:
Fields – Validation rules
Name – required, must contain letters and spaces
Email – required, must contain a valid e-mail address, including @ and.
URL (website) – optional, if the fill must
Basic Html learning (W3school-based network tutorial) and w3school network tutorial
// Prevent garbled characters
Add in head
// Format the external style sheet in the head.
// Use the html style sheet for formatting
// Bgcolor defines the
Index:
HTML input type
Xhtml
HTML5
HTML5 Style guidelines and code conventions
The WHO was established in 1948.Marking abbreviations can provide useful information for browsers, translation systems, and search engines.The
When you look at the client code, you often encounter JavaScript scripts, the system to learn a bit more in the future to understand the client is good.1. Application ScenariosImproved designValidating formsdetecting browsersCreate cookies, etc.2.
HTML5 Server Send events (Server-sent event) allow Web pages to get updates from the server.Server-sent Event-one-way message deliveryThe Server-sent event refers to a webpage that automatically obtains updates from the server.This could have been
What you need to learn HTML preparation (1)Know Html:what (what is it)?①html (Hyper Text Markup Language, a Hypertext Markup Language, is essentially text and requires a browser to interpret it as a specific page content. ).===> "hypertext" means
Original link: http://www.w3school.com.cn/html5/att_input_placeholder.aspHTML 5 Placeholder PropertiesHTML 5 TagsInstanceSearch field with placeholder text: placeholder="Search W3School" /> Try it yourself.Definition and usageThe placeholder
1. Selector structure
jquery selector can be divided into several blocks according to the source code.Init:function (selector, context, rootjquery) {...HANDLE: $ (""), $ (null), $ (undefined), $ (false)...Handle HTML Stringsif (typeof selector
---restore content starts---HTML forms and inputs
HTML layout
HTML Framework
HTML forms are used to collect different types of user input.Example
Text field
This example shows how to create a text
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.